package com.kmzx.one.project.mapper;

import com.kmzx.one.project.entity.UserCashback;
import com.kmzx.one.project.entity.UserGrowthDetail;
import com.kmzx.one.project.entity.UserPay;
import com.kmzx.one.project.entity.UserSharePics;
import com.kmzx.one.project.others.dto.BannerInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SimpleMapper {

    List<BannerInfo> selectAllBanners();

    List<UserSharePics> selectUserSharePics(@Param("userId") String userId, @Param("productId") String productId, @Param("fast") String fast);

    int insertUserSharePics(UserSharePics userSharePics);

    Map<String, String> selectSceneByProdId(@Param("productId") String productId);

    Map<String, BigDecimal> selectProductFreeFee();

    List<UserPay> selectUserPayByUserId(@Param("userId") String userId);

    List<UserGrowthDetail> selectUserGrowthDetail(@Param("userId") String userId, @Param("ordersId") String ordersId, @Param("upMode") Integer upMode);

    UserPay selectOneUserPayByUserId(@Param("userId") String userId);

    // 余额消耗明细
    int insertUserProfitDown(UserCashback userCashback);


}
